package com.geralt.im.servercommand;

import com.geralt.im.jms.MessageQueueProducer;
import com.geralt.im.model.NeedReplyMessage;

public abstract class ServerCommand {
	protected MessageQueueProducer sender;
	protected String uuid;
	
	public abstract String excute();
	
	public void sendReply(NeedReplyMessage msg){
		sender.send(msg);
		sender.commit();
	};
	/**
	 * @return the sender
	 */
	public MessageQueueProducer getSender() {
		return sender;
	}
	/**
	 * @param sender the sender to set
	 */
	public void setSender(MessageQueueProducer sender) {
		this.sender = sender;
	}
	/**
	 * @return the uuid
	 */
	public String getUuid() {
		return uuid;
	}
	/**
	 * @param uuid the uuid to set
	 */
	public void setUuid(String uuid) {
		this.uuid = uuid;
	}
	
}
